package com.topboya.officeuser.controller;

import com.topboya.officeuser.annotation.MyField;
import com.topboya.officeuser.annotation.ValidLogin;
import lombok.SneakyThrows;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className TestFieldHandler
 * @Author xiaxin
 * @Date 2020/12/25 19:09
 * @Version 1.0
 **/
@RestController
public class TestFieldHandler {

    @MyField
    @GetMapping("/sourceA")
    @ValidLogin
    public String sourceA(){
        return "aaa";
    }

    @MyField
    @GetMapping("/sourceB")
    public String sourceBac(){
        return "你正在访问sourceB资源";
    }

}
